package com.fire.common.domain;

import javax.swing.plaf.nimbus.NimbusStyle;

/** 自定义的异常类型
 * @author fire
 * @date 2021年07月16日16:38
 */
public class BusinessException extends RuntimeException{
    private ErrorCode errorCode;

    public BusinessException(ErrorCode errorCode){
        super();
        this.errorCode = errorCode;
    }
    public BusinessException(){
        super();
    }

    public ErrorCode getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(ErrorCode errorCode) {
        this.errorCode = errorCode;
    }
}
